<template>
  <div>
    <el-container>
      <el-header height="10vh">育致远后台管理系统</el-header>
      <el-container>
        <el-aside width="200px">
          <el-row class="tac">
            <el-col :span="24">
              <el-menu
                :default-active="this.$route.path"
                :unique-opened='true'
                :router='true'
                class="el-menu-vertical-demo"
                @open="handleOpen"
                @close="handleClose"
              >
                <el-menu-item index="/yb">
                  <i class="el-icon-location"></i>
                  <span slot="title">仪表盘</span>
                </el-menu-item>
                <el-submenu index="2">
                  <template slot="title">
                    <i class="el-icon-setting"></i>
                    <span>常用设置</span>
                  </template>
                  <el-menu-item-group>
                    <el-menu-item index="/banner" to='/'>banner</el-menu-item>
                    <el-menu-item index="/mings">名师列表</el-menu-item>
                  </el-menu-item-group>
                </el-submenu>
                <el-submenu index="3">
                  <template slot="title">
                    <i class="el-icon-setting"></i>
                    <span>课程管理</span>
                  </template>
                  <el-menu-item-group>
                    <el-menu-item index="/classlist">课程大类</el-menu-item>
                    <el-menu-item index="/classtwo">课程小科</el-menu-item>
                    <el-menu-item index="/classall">课程管理</el-menu-item>
                  </el-menu-item-group>
                </el-submenu>
              </el-menu>
            </el-col>
          </el-row>
        </el-aside>
        <el-main>
            <router-view></router-view>
        </el-main>
      </el-container>
      <el-footer height="10vh">Footer</el-footer>
    </el-container>
  </div>
</template>
<script>
// import Vue from "vue";
// import { Container, Header, Aside, Main, Footer } from "element-ui";
// Vue.use(Container);
// Vue.use(Header);
// Vue.use(Aside);
// Vue.use(Main);
// Vue.use(Footer);
export default {
  data() {
    return {};
  },
  mounted(){
      // console.log(123)
      // console.log(this.$route.path)
  },
  methods: {
    handleOpen(key, keyPath) {
      // console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      // console.log(key, keyPath);
    }
  }
};
</script>

<style>
* {
  margin: 0;
  padding: 0;
}
.el-header,
.el-footer {
  background-color: #b3c0d1;
  color: #333;
  text-align: center;
  height: 10vh;
  line-height: 10vh;
}

.el-aside {
  color: #333;
  border-right:1px solid #b3c0d1;
  overflow: hidden;
  /* padding-right: -1px; */
  /* text-align: center; */
  /* line-height: 200px; */
}

.el-main {
  /* background-color: #e9eef3; */
  color: #333;
  /* text-align: center; */
  height: 80vh;
  padding: 10px;
  /* line-height: 160px; */
}
</style>
